import request from "../utils/request";
export const GetSuppliers = (obj) => {
    return request({
        url: 'api/Admin/GetSuppliers',
        method: "get",
        params: obj,
    });
};

export const DeleteSupplier = (obj) => {
    return request({
        url: 'api/Admin/DeleteSupplier',
        method: "post",
        data: obj
    })
}
export const BanSupplier = (obj) => {
    return request({
        url: 'api/Admin/BanSupplier',
        method: "post",
        data: obj
    })
}
/**
 * 供应商详情
 * @param {*} obj 
 * @returns 
 */
export const GetSupplierStatistics = (obj) => {
    return request({
        url: 'api/admin/Admin_GetSingleSupplier',
        method: "get",
        params: obj,
    });
};
/**
 * 销售订单
 * @param {*} obj 
 * @returns 
 */
export const GetSupplierOrderDetails = (obj) => {
    return request({
        url: 'api/admin/Admin_GetSupplierOrders',
        method: "get",
        params: obj,
    });
};
/**
 * 商品列表
 * @param {*} obj 
 * @returns 
 */
export const GetSupplierGoods = (obj) => {
    return request({
        url: 'api/admin/GetSupplierGoods',
        method: "get",
        params: obj,
    });
};
export const AddSupplier = (obj) => {
    return request({
        url: 'api/Admin/AddSupplier',
        method: "post",
        data: obj
    })
}
export const BanGoods = (obj) => {
    return request({
        url: 'api/Admin/BanGoods',
        method: "post",
        data: obj
    })
}
export const ShelveGoods = (obj) => {
    return request({
        url: 'api/Admin/ShelveGoods',
        method: "post",
        data: obj
    })
}
export const GetBusinessTypes = (obj) => {
    return request({
        url: "api/admin/Admin_GetBusinessTypes",
        method: "get",
        params: obj,
    })
}

export const GetOrderDetails = (obj) => {
    return request({
        url: "api/admin/GetOrderDetails",
        method: "get",
        params: obj,
    })
}










